[#import "/framework/JGP.htm"  as JGP]
<!--
项目   jgp-cloud-parent
作者   LOUFEI [Gavin]
时间   2018/12/4
-->
[@JGP.head "待办任务"/]
[@JGP.body]
     <jgp-grid
               _url="/workflow/processApiController/queryApplyButNotPass/${userId!'null'}"
               _record_tools="[{'icon':'edit','tip':'处理','fn':'taskHandlerDialog'},
                  {'icon':'edit','tip':'查看流程图','fn':'showProcessPic'}]">
     </jgp-grid>
[/@JGP.body]

[@JGP.foot]
    <script>
        function showProcessPic(data){
            var procId = data.back.record.procId;
            var config = {
                url:'/workflow/processController/showProcessPic/'+procId
            };
            JGP.$dialog(config);
        }

        function taskHandlerDialog(data) {
            var busiFormConfig = {
                procId:data.back.record.procId,
                taskId:data.back.record.taskId,
                editFlag:true
            };
            var dialogConfig = {
                title:'任务处理',
                width:'900px'
            };
            new JGP.Task().taskHandlerDialog(busiFormConfig,dialogConfig);
        }
    </script>
[/@JGP.foot]